/**
 * @filename:CapitalType 2023-4-20
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;
import java.util.List;
import java.util.Map;

/**   
 * @Description:TODO(配资类型实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sn_capital_type")
@ApiModel(value="sn_capital_type对象", description="配资类型表")
public class CapitalType extends Model<CapitalType> {

	private static final long serialVersionUID = 1681939599167703L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(value = "short_name") 	
	@ApiModelProperty(name = "short_name" , value = "简称")
    private String short_name;
    
    @TableField(value = "name") 	
	@ApiModelProperty(name = "name" , value = "配资名称")
    private String name;
    
    @TableField(value = "multiple") 	
	@ApiModelProperty(name = "multiple" , value = "配资倍数")
    private String multiple_table;
	
	@TableField(exist = false)
	private List<Map<String,Object>> multiple;
    
    @TableField(value = "number_min") 	
	@ApiModelProperty(name = "number_min" , value = "最小配资")
    private Long number_min;
    
    @TableField(value = "number_max") 	
	@ApiModelProperty(name = "number_max" , value = "最大配资")
    private Long number_max;
    
    @TableField(value = "time_min") 	
	@ApiModelProperty(name = "time_min" , value = "最小时间")
    private Long time_min;
    
    @TableField(value = "time_max") 	
	@ApiModelProperty(name = "time_max" , value = "最大时间")
    private Long time_max;
    
    @TableField(value = "warning") 	
	@ApiModelProperty(name = "warning" , value = "预警线%")
    private Double warning;
    
    @TableField(value = "close") 	
	@ApiModelProperty(name = "close" , value = "平仓线%")
    private Double close;
    
    @TableField(value = "times") 	
	@ApiModelProperty(name = "times" , value = "整倍数")
    private Long times;
    
    @TableField(value = "limit_delay") 	
	@ApiModelProperty(name = "limit_delay" , value = "延期限制")
    private Long limit_delay;
    
    @TableField(value = "profit") 	
	@ApiModelProperty(name = "profit" , value = "盈利分成%")
    private Double profit;
    
    @TableField(value = "status") 	
	@ApiModelProperty(name = "status" , value = "状态")
    private Integer status;
    
	@TableField(value = "create_time",fill=FieldFill.INSERT) 
	@ApiModelProperty(name = "create_time" , value = "时间")
    private Date create_time;
    
    @TableField(value = "fee") 	
	@ApiModelProperty(name = "fee" , value = "佣金比例")
    private Double fee;
    
    @TableField(value = "explain1") 	
	@ApiModelProperty(name = "explain1" , value = "说明1")
    private String explain1;
    
    @TableField(value = "explain2") 	
	@ApiModelProperty(name = "explain2" , value = "说明2")
    private String explain2;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
